package com.ww.testserver.order;

import org.springframework.stereotype.Service;

/**
 * @author iiwan
 */
@Service
public class OrderService {

    public OrderEntity submitOrder(OrderEntity order) {
        System.out.println("接收订单：" + order.toString());
        order.setSubmit(true);
        return order;
    }

    public OrderEntity getOrder() {
        OrderEntity entity = new OrderEntity();
        entity.setOrderId(123);
        return entity;
    }
}
